{"version":3,"sources":["form.js"],"names":["BX","namespace","UI","Form","this","_id","_settings","_elementNode","_formData","prototype","initialize","id","setting","type","isNotEmptyString","isPlainObject","prop","getElementNode","getObject","doInitialize","getId","submit","options","eventArgs","cancel","onCustomEvent","doSubmit","AjaxForm","superclass","constructor","apply","_config","extend","getString","getUrl","setUrl","url","addUrlParams","params","Object","keys","length","util","add_url_param","config","clone","data","merge","ajax","submitAjax","create","settings","self","ComponentAjax","_className","_actionName","_signedParameters","_callbacks","_getParameters","_prepareFormData","formData","parent","dataElement","dataElementParent","isArray","append","makeFormData","FormData","prepareForm","filesCount","i","hasOwnProperty","resultData","runComponentAction","mode","signedParameters","getParameters","then","response","callback","getFunction","window","bind","catch","messages","errors","push","ERRORS"],"mappings":"AAAAA,GAAGC,UAAU,SAEb,UAAUD,GAAGE,GAAO,OAAM,YAC1B,CACCF,GAAGE,GAAGC,KAAO,WAEZC,KAAKC,IAAM,GACXD,KAAKE,UAAY,KACjBF,KAAKG,aAAe,KACpBH,KAAKI,UAAY,MAElBR,GAAGE,GAAGC,KAAKM,WAEVC,WAAY,SAASC,EAAIC,GAExBR,KAAKC,IAAML,GAAGa,KAAKC,iBAAiBH,GAAMA,EAAK,GAC/CP,KAAKE,UAAYN,GAAGa,KAAKE,cAAcH,GAAWA,KAClDR,KAAKG,aAAeP,GAAGgB,KAAKC,eAAeb,KAAKE,UAAW,cAAe,MAC1EF,KAAKI,UAAYR,GAAGgB,KAAKE,UAAUd,KAAKE,UAAW,WAAY,MAC/D,IAAIF,KAAKG,eAAiBH,KAAKI,UAC/B,CACC,KAAM,gFAGPJ,KAAKe,gBAENA,aAAc,aAGdC,MAAO,WAEN,OAAOhB,KAAKC,KAEbY,eAAgB,WAEf,OAAOb,KAAKG,cAEbc,OAAQ,SAASC,GAEhB,IAAItB,GAAGa,KAAKE,cAAcO,GAC1B,CACCA,KAGD,IAAIC,GAAcC,OAAQ,MAAOF,QAASA,GAC1CtB,GAAGyB,cAAcrB,KAAM,kBA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